package com.secxiot.provider.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@ApiModel
@Data //lombok，无须再添加get/set方法
@ToString
public class UserNarcoticDto implements Serializable {
    private static final long serialVersionUID = -1042714888812668295L;

    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    @ApiModelProperty(value = "用户名", required = true)
    private  String username;


    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    @ApiModelProperty(value = "直属部门id")
    private Long deptId;

    @ApiModelProperty(value = "直属部门名称")
    private String deptName;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号码", required = true)
    private String mobile;

    @ApiModelProperty(value = "状态0禁用1正常", required = true)
    private Integer status;

    @ApiModelProperty(value = "性别1 : 男 ， 0 : 女")
    private Integer sex;

    @ApiModelProperty(value = "出生日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;

    @ApiModelProperty(value = "地址")
    private String liveAddress;

    @ApiModelProperty(value = "头像路径")
    private String headerImg;

    @ApiModelProperty(value = "用户类型，字典:00001", required = true)
    private String type;

    @ApiModelProperty(value = "身份证号码")
    private String identificationNumber;

    @ApiModelProperty(value = "医疗机构")
    private Long hospitalId;

    @ApiModelProperty(value = "wxOpenid")
    private String wxOpenid;

    @ApiModelProperty(value = "wxuserid")
    private String wxUserid;

    @ApiModelProperty(value = "省份")
    private String province;

    @ApiModelProperty(value = "所在城市")
    private String city;

    @ApiModelProperty(value = "所在地区")
    private String district;
}
